<?php

namespace app\common\model;

use think\Db;

/**
 *   日志
 */
class Logs extends Base{
	

	  /**
      * chongzhilog [增加记录]
      *
      * @param type $uid   [desc]
      * @param type $type  [类型 1 充值 2 充值赠送 3 消费 4签到赠送]
      * @param type $title [desc]
      * @param type $money [金额]
      * @param type $egold [阅读币数量]
      *
      * @return type
    **/
		
	public function add($uid,$type,$title,$money,$egold) {
		$log['user_id'] =$uid;
		$log['type'] =$type;
		$log['title'] =$title;
		$log['money'] =$money;
		$log['shubi'] =$egold;
		$log['created_at'] =time();
		Db::name('chongzhi_log')->insert($log);
	}

}